#ifndef FREQUENCYANALYSIS_H
#define FREQUENCYANALYSIS_H

#include <QThread>
#include <QHash>

class FrequencyAnalysis : public QThread
{
    Q_OBJECT
public:
    FrequencyAnalysis(int freqLen, QByteArray input, QHash<QByteArray, int> frequencies = QHash<QByteArray, int>(), QObject *parent = 0);

signals:
    void done(QString formattedOutput);

protected:
    void run();

private:
    int freqLen;
    QByteArray input;
    QHash<QByteArray, int> frequencies;

};

#endif // FREQUENCYANALYSIS_H
